package com.zenithmind.document.pojo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zenithmind.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文档分类实体类
 * 
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("document_category")
@Schema(description = "文档分类实体")
public class DocumentCategory extends BaseEntity {

    /**
     * 分类名称
     */
    @TableField("name")
    @Schema(description = "分类名称")
    private String name;

    /**
     * 分类描述
     */
    @TableField("description")
    @Schema(description = "分类描述")
    private String description;

    /**
     * 父分类ID
     */
    @TableField("parent_id")
    @Schema(description = "父分类ID")
    private String parentId;

    /**
     * 分类层级
     */
    @TableField("level")
    @Schema(description = "分类层级")
    private Integer level;

    /**
     * 分类路径
     */
    @TableField("path")
    @Schema(description = "分类路径")
    private String path;

    /**
     * 图标URL
     */
    @TableField("icon_url")
    @Schema(description = "图标URL")
    private String iconUrl;

    /**
     * 排序值
     */
    @TableField("sort_order")
    @Schema(description = "排序值")
    private Integer sortOrder;

    /**
     * 状态（0:禁用, 1:启用）
     */
    @TableField("status")
    @Schema(description = "状态（0:禁用, 1:启用）")
    private Integer status;

    /**
     * 文档数量
     */
    @TableField("document_count")
    @Schema(description = "文档数量")
    private Long documentCount;

    /**
     * 创建者ID
     */
    @TableField("creator_id")
    @Schema(description = "创建者ID")
    private String creatorId;
}
